﻿using Data.Interfaces;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Data.DBModels
{
    public class Category : IEntityBase
    {
        [Required]
        public Guid Id { get; set; }

        [Required]
        public DateTime CreatedOn { get; set; }

        public DateTime? ModifiedOn { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public virtual ICollection<Website> Websites { get; set; }

        [ForeignKey("CreatedBy")]
        public Guid CreatedBy_Id { get; set; }
        public virtual User CreatedBy{get;set;}

        public int? Order { get; set; }
    }
}
